// --------------------------------------------------------------------------------------------------------------------
// <copyright file="SA1400AccessModifierMustBeDeclaredBulbItem.cs" company="StyleCop for ReSharper Development Team">
//   Copyright (c) StyleCop for ReSharper Development Team. All rights reserved.
// </copyright>
// <summary>
//   Defines the SA1400AccessModifierMustBeDeclaredBulbItem type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace StyleCop.For.ReSharper.BulbItems.Maintainability
{
    #region Using Directives

    using JetBrains.ProjectModel;
    using JetBrains.TextControl;

    using StyleCop.For.ReSharper.BulbItems.Framework;

    #endregion

    internal class SA1400AccessModifierMustBeDeclaredBulbItem : V5BulbItemImpl
    {
        public string Modifier { get; set; }

        public override void ExecuteTransactionInner(ISolution solution, ITextControl textControl)
        {
            textControl.Document.InsertText(this.DocumentRange.TextRange.StartOffset, this.Modifier + " ");
        }
    }
}